package dao;

import domain.AbstractEntity;

import java.util.Collection;

public interface DaoInterface<T extends AbstractEntity> {


    void save(T folder) throws Exception;

    T findById(Integer folderId) throws Exception;

    Collection<T> findAll() throws Exception;

    void delete(Integer folderId) throws Exception;

    void close() throws Exception;
}
